package com.lcxw.hxzb.friendcircle.project.system.mapper;

import java.util.List;
import com.lcxw.hxzb.friendcircle.project.system.domain.YwpdLike;

/**
 * 动态点赞Mapper接口
 *
 * @author jjp
 * @date 2020-07-20
 */
public interface YwpdLikeMapper {

    /**
     * 查询动态点赞
     *
     * @param likeId 动态点赞ID
     * @return 动态点赞
     */
    public YwpdLike selectYwpdLikeById(Long likeId);

    /**
     * 查询动态点赞列表
     *
     * @param ywpdLike 动态点赞
     * @return 动态点赞集合
     */
    public List<YwpdLike> selectYwpdLikeList(YwpdLike ywpdLike);

    /**
     * 新增动态点赞
     *
     * @param ywpdLike 动态点赞
     * @return 结果
     */
    public int insertYwpdLike(YwpdLike ywpdLike);

    /**
     * 修改动态点赞
     *
     * @param ywpdLike 动态点赞
     * @return 结果
     */
    public int updateYwpdLike(YwpdLike ywpdLike);

    /**
     * 删除动态点赞
     *
     * @param likeId 动态点赞ID
     * @return 结果
     */
    public int deleteYwpdLikeById(YwpdLike ywpdLike);

    public int deleteYwpdLikesById(YwpdLike ywpdLike);

    /**
     * 批量删除动态点赞
     *
     * @param likeIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteYwpdLikeByIds(Long[] likeIds);

    public List<YwpdLike> queryLikeByYwpdLike(YwpdLike ywpdLike);

    List<YwpdLike> selectYwpdLikeByDynamicId(Long dynamicId);

    List<YwpdLike> queryByDynamicId(YwpdLike ywpdLike);

    List<YwpdLike> queryByCommentId(YwpdLike ywpdLike);
}
